import 'package:flutter/material.dart';

class WrapTest extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // return Row(
    //   children: [
    //     Text("xxx" * 100)
    //   ],
    // );

    return Wrap(
      spacing: 8,
      runSpacing: 4.0,
      alignment: WrapAlignment.center,
      children: [
        Chip(
          avatar: CircleAvatar(backgroundColor: Colors.blue,child: Text("A"),),
          label: Text("Hamilton")
        ),
        Chip(
          avatar: CircleAvatar(backgroundColor: Colors.blue,child: Text("M"),),
          label: Text("Lafayette")
        ),
        Chip(
          avatar: CircleAvatar(backgroundColor: Colors.blue,child: Text("H"),),
          label: Text("Mulligan")
        ),
        Chip(
          avatar: CircleAvatar(backgroundColor: Colors.blue,child: Text("J"),),
          label: Text("Laurens")
        ),
      ],

    );
  }

}